<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加任务反馈</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/proms/feedback/feedback_add.js"></script>

  </head>
  
  <body>
    <div class="easyui-layout" fit="true">
    	<div data-options="region:'north', title:'任务详情'" style="height : 220px;">
    		<table class="edit-table">
				<tr>
					<th>所属指标：</th>
					<td colspan="7">
						<input type="hidden" id="projectIndexId" name="projectIndexId" value="${feedBack.task.projectIndexId }" />
						<label>${feedBack.task.projectIndexName }</label>
					</td>
				</tr>
				<tr>
					<th>任务主题：</th>
					<td>
						<label>${feedBack.task.name }</label>
					</td>
				</tr>
				<tr>
					<th>计划完成时间段：</th>
					<td colspan="7"><label>${feedBack.task.startTime }</label>～<label>${feedBack.task.endTime }</label></td>
				</tr>
				<%-- <tr>
					<th>资金来源</th>
					<td>
						<label id="fundsources_label"></label>
						<input id="fundSources" name="fundSources" type="hidden" value="${feedBack.task.fundSources }" />
					</td>
				</tr>
				<tr>
					<th>计划使用资金：</th>
					<td>
						<label>￥${feedBack.task.planAmount }</label>
						<input type="hidden" id="planAmount" name="planAmount" value="${feedBack.task.planAmount }"/>
					</td>
				</tr> --%>
				<tr>
					<th>资金来源</th>
					<td><label id="fundsources_label"></label> <input id="fundSources" name="fundSources" type="hidden" value="${feedBack.task.fundSources }" /></td>
					<th>计划使用资金：</th>
					<td><label>￥${feedBack.task.planAmount }</label><input type="hidden" id="planAmount" name="planAmount" value="${feedBack.task.planAmount }"/></td>
					<th>实际使用资金</th>
					<td><label id="factAmount_label"></label><input type="hidden" id="factAmount" value="${feedBack.task.factAmount }"/></td>
					<th>任务进度</th>
					<td><label id="progress_label"></label><input type="hidden" id="progress" value="${feedBack.task.progress }"/></td>
				</tr>
				<tr>
					<th>任务描述：</th>
					<td colspan="7"><textarea id="remark" name="remark" readonly="readonly" disabled="disabled" style="width: 98%;height: 80px;">${feedBack.task.remark }</textarea></td>
				</tr>
			</table>
    	</div>
   		<div data-options="region:'center', title:'任务反馈'">
   			<div class="easyui-layout" fit="true" width="100%" height="100%">
		   		<div region="center" border="false">
					<form id="form" method="post">
						<input id="page_type" value="detail" type="hidden"/>
						<input id="id" name="id" type="hidden" value="${feedBack.id }" />
						<input id="taskId" name="taskId" type="hidden" value="${feedBack.task.id }" />
						<input id="auditCount" type="hidden" value="${feedBack.auditCount }">
						<table class="edit-table">
							<tr>
								<th>任务进度：</td>
								<td><input id="progress" name="progress" value="${feedBack.progress }" class="easyui-numberbox" data-options="min:0,precision:2" /> %</td>
							</tr>
							<tr>
								<th>资金使用情况：</th>
								<td>￥<input id="factAmount" name="factAmount" value="${feedBack.factAmount }" class="easyui-numberbox" data-options="min:0,precision:2" /></td>
							</tr>
							<tr>
								<th>任务反馈：</th>
								<td><textarea id="remark" name="remark" class="easyui-validatebox" style="width: 300px;height: 80px;">${feedBack.remark }</textarea></td>
							</tr>
							<!-- <tr>
								<th>佐证材料：</th>
								<td><div id="_fileupload"></div></td>
							</tr> -->
							<tr>
								<th>资金类佐证材料：</th>
								<td><div id="funds_fileupload"></div></td>
							</tr>
							<tr>
								<th>成果类材料：</th>
								<td><div id="result_fileupload"></div></td>
							</tr>
							<tr>
								<th>审核意见(上一次)：</th>
								<td>
									<table id="last_audit" cellpadding="0" cellspacing="0">
										<tr><td>审核人</td><td><span id="audit_user">${feedBack.auditUserName }</span></td></tr>
										<tr><td>审核时间</td><td><span id="audit_time">${feedBack.auditTime }</span></td></tr>
										<tr><td>审核结果</td><td><span id="audit_result"></span><input type="hidden" id="auditStatus" value="${feedBack.status }"></td></tr>
										<tr><td>审核意见</td><td><span id="audit_remark">${feedBack.auditRemark }</span></td></tr>
									</table>
								</td>
							</tr>
						</table> 
					</form>
		   		</div>
		   		<!-- <div region="south" border="false" style="text-align: right; height: 35px; line-height: 8px; padding:5px 5px 0 0;">
		   			<a id="btnSave" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0);">确定</a>
		   			<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0);">取消</a>
		   		</div> -->
		   	</div>
   		</div>
   	</div>
  </body>
</html>
